/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package demo06;

/**
 *
 * @author Administrator
 */
import java.io.*;
class readFileDemo {

    public static void main(String args[]) throws Exception {
        File file = new File("text.txt");
        FileReader f = new FileReader(file);
        BufferedReader b = new BufferedReader(f);
        String temp = null;
        While((temp = b.readLine()) != null);
        {
            System.out.println(temp);
        }
        System.out.println("*****************文件结束**********************");
    }

    private static void While(boolean b) {
        throw new UnsupportedOperationException("Not yet implemented");
    }
}
